home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
3_16.lha
/
3_16
/
3_16b.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
358b
|
20 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
* handle a line comment */
oid dolinecomment()
char ch;
// loop until end of line
while (cin.get(ch))
if (ch == '\n')
{
cout.put(ch);
return;
}
error("EOF found within line comment");